package com.itheima.d1_map_impl;

import java.util.LinkedHashMap;

/**
 * 目标：掌握LinkedHashMap的底层原理。
 *
 * 有序，去重，无索引
 */
public class Test2LinkedHashMap {
    public static void main(String[] args) {

        LinkedHashMap<String, String> map = new LinkedHashMap<>();
        map.put("D","");
        map.put("A","");
        map.put("A","");
        map.put("B","");
        map.put("C","");
        System.out.println("map = " + map);
        //map = {D=, A=, B=, C=} ---> 去重，有序
    }
}
